Skip to content

Conversation

baileympearson
Copy link
Contributor

@baileympearson baileympearson commented Sep 3, 2025

This PR updates the handshake specification to clarify that drivers MUST NOT append the same metadata multiple times to a MongoClient.

Please complete the following before merging:

  • Update changelog.
  • Test changes in at least one language driver.
  • Test these changes against all server versions and topologies (including standalone, replica set, and sharded
    clusters).

@baileympearson baileympearson changed the title DRIVERS-3262: appendClientMetadata() does not append duplicate metdata DRIVERS-3262: appendMetadata() does not append duplicate metdata Sep 3, 2025
@baileympearson baileympearson marked this pull request as ready for review September 4, 2025 20:17
@baileympearson baileympearson requested a review from a team as a code owner September 4, 2025 20:17
@baileympearson baileympearson requested review from JamesKovacs and dariakp and removed request for a team September 4, 2025 20:17
Copy link
Contributor

@dariakp dariakp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Just a couple of small things here; will approve once cross-referenced with Node implementation

@dariakp dariakp self-assigned this Sep 9, 2025
Copy link
Contributor

@JamesKovacs JamesKovacs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@dariakp dariakp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, pending typo fix, negotiated wording in the spec text, and the removal of the redundant test case from the duplicate metadata set in Test 3

Copy link
Member

@prestonvasquez prestonvasquez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

Go Driver implementation here: mongodb/mongo-go-driver#2197

@dariakp dariakp merged commit e133c20 into mongodb:master Sep 12, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants